From 970e7de0e21721e3de77a44fa800c95a19bdaabc Mon Sep 17 00:00:00 2001 From: George Dunlap Date: Fri, 11 May 2012 17:34:23 +0100 Subject: [PATCH] xl: Call xlu_cfg_destroy in the pciattach and pcidetach Signed-off-by: George Dunlap Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 70b848eb10..7df90d75af 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2298,7 +2298,9 @@ static void pcidetach(const char *dom, const char *bdf, int force) libxl_device_pci_destroy(ctx, domid, &pcidev); else libxl_device_pci_remove(ctx, domid, &pcidev); + libxl_device_pci_dispose(&pcidev); + xlu_cfg_destroy(config); } int main_pcidetach(int argc, char **argv) @@ -2340,7 +2342,9 @@ static void pciattach(const char *dom, const char *bdf, const char *vs) exit(2); } libxl_device_pci_add(ctx, domid, &pcidev); + libxl_device_pci_dispose(&pcidev); + xlu_cfg_destroy(config); } int main_pciattach(int argc, char **argv) -- 2.30.2